package com.yxch.admin.mapper.comment;

import com.yxch.admin.model.commen.AuditLog;
import com.yxch.admin.model.commen.PageResult;
import com.yxch.admin.model.comment.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    PageResult getPosts(Integer start, Integer pageSize, String postType, String postTitle);

    PostVO getPostById(Integer postId);

    void updatePost(AuditLog auditLog);

    void insertAudit(AuditLog auditLog);

    PageResult getBanword(Integer start, Integer pageSize);

    PageResult getComments(CommentDTO commentDTO);

    void addBanword(BanWord banWord);

    void updateBanword(BanWord banWord);

    void deleteBanword(List<Integer> ids);

    void deleteComments(List<Integer> ids);

    void updateTop(PostTop postTop);

    void addPost(PostAdd postAdd);

    void deletePosts(List<Integer> ids);
}
